import { Coin, OfficeBuilding, UserFilled, Avatar, Files } from "@element-plus/icons-vue";

// 动态路由
export const dynamicRouter = [
	{
		path: '/container/caidan1',
		component: () => import("@/views/dynamicPage/index.vue"),
		props: {
			tableName: 'table1'
		},
		meta: {
			title: "菜单1",
			icon: Files
		}
	},
	{
		path: '/container/caidan2',
		component: () => import("@/views/dynamicPage/index.vue"),
		props: {
			tableName: 'table2'
		},
		meta: {
			title: "菜单2",
			icon: Files
		}
	},
	{
		path: '/container/caidan3',
		meta: {
			title: "菜单3",
			icon: Files
		},
		children: [
			{
				path: "/container/caidan3-1",
				component: () => import("@/views/dynamicPage/index.vue"),
				props: {
					tableName: 'table3'
				},
				meta: {
					title: "菜单3-1",
					icon: Files
				},
			},
			{
				path: "/container/caidan3-2",
				component: () => import("@/views/dynamicPage/index.vue"),
				props: {
					tableName: 'table4'
				},
				meta: {
					title: "菜单3-2",
					icon: Files
				},
			},
		]
	}
]
// 自定义页面路由
export const customRouter = [
	{
		path: '/custom-page/custom1',
		component: () => import("@/views/customPage/custom1/index.vue"),
		meta: {
			title: "自定义1",
			icon: Files
		}
	},
	{
		path: '/custom-page/custom2',
		component: () => import("@/views/customPage/custom2/index.vue"),
		meta: {
			title: "自定义2",
			icon: Files
		}
	},
	{
		path: '/custom-page/custom3',
		component: () => import("@/views/customPage/custom3/index.vue"),
		meta: {
			title: "自定义3",
			icon: Files
		},
		children: [
			{
				path: '/custom-page/custom3-1',
				component: () => import("@/views/customPage/custom3-1/index.vue"),
				meta: {
					title: "自定义3-1",
					icon: Files
				}
			},
		]
	},
]
export const menu = [
	{
		path: "/manage-project",
		component: () => import("@/views/manageProject/index.vue"),
		meta: {
			title: "项目管理",
			icon: Files
		},
	},
	{
		path: "/manage-data-structure",
		component: () => import("@/views/manageDataStructure/index.vue"),
		meta: {
			title: "数据结构",
			icon: Coin
		},
	},
	{
		path: "/manage-router",
		component: () => import("@/views/manageRouter/index.vue"),
		meta: {
			title: "路由配置",
			icon: Files
		},
	},
	// {
	// 	path: "/manage-department",
	// 	component: () => import("@/views/manageDepartment/index.vue"),
	// 	meta: {
	// 		title: "部门管理",
	// 		icon: OfficeBuilding
	// 	}
	// },
	// {
	// 	path: "/manage-role",
	// 	component: () => import("@/views/manageRole/index.vue"),
	// 	meta: {
	// 		title: "角色管理",
	// 		icon: Avatar
	// 	},
	// },
	// {
	// 	path: "/manage-person",
	// 	component: () => import("@/views/managePerson/index.vue"),
	// 	meta: {
	// 		title: "人员管理",
	// 		icon: UserFilled
	// 	},
	// },
	...dynamicRouter,
	...customRouter
];
